package com.vinfai.patterns.template;

/**
 * 定期储蓄利率
 * @author fangwh
 *
 */
public class CalcDemandDepoistInterset extends CalculateRateTemplate {

	@Override
	protected double doCalYearRateByDepositTypeAndMonth(int month) {
		double rate  = 0.0035;
		
		switch(month){
			case 3 : rate = 0.026; break;
			case 6 : rate = 0.028; break;
			case 12 : rate = 0.03; break;
			case 36 : rate = 0.0425; break;
			case 60 : rate = 0.0475; break;
			default : rate = 0.0035;
		};
		
		return rate;
	}

}
